/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __ENTITY_CONTROL_H__
#define __ENTITY_CONTROL_H__

#include <QtGui/QWidget>
#include <QtGui/QToolBar>
#include <QtGui/QTreeWidget>
#include <QtGui/QComboBox>

#include "MeshComponent.h"

namespace PQBuilder
{
	class EntityAnimComboBox : 
		public QComboBox
	{
		Q_OBJECT
	private:
		PQEngine::MeshComponent* _component;
	public:
		EntityAnimComboBox(QWidget *parent = 0,PQEngine::MeshComponent * component=0);
		~EntityAnimComboBox();
	public slots:
		void OnSelectChanged();
	};

	class EntityControl : 
		public QWidget
	{
		Q_OBJECT
	public:
		EntityControl(QWidget *parent = 0,PQEngine::MeshComponent* component=0);
		~EntityControl();
	public slots:
		void playAnim(int state);
		void hideMesh(int state);
	private:
		PQEngine::MeshComponent* _component;
	};
}

#endif
